/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f60;
    padding: 10px;
}

.navbar a {
    color: #000;
    text-decoration: none;
    padding: 5px 15px;
    display: inline-block;
    line-height: 20px;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

/* 添加上下边框的 hover 效果 */
.navbar a:hover {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    min-width: 150px;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    color: #000;
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
}

/* 下拉菜单的 hover 效果 */
.dropdown-menu a:hover {
    background-color: #f0f0f0;
}

/* 显示下拉菜单 */
.dropdown:hover .dropdown-menu {
    display: block;
}
